package com.reder.practice.vo;

import java.util.Date;

/**
 * 评论vo：包括评论内容、时间和用户的头像、昵称信息
 *
 * @author Red
 * <p>Email: 1318944013@qq.com</p>
 * <p>created by 2019/09/23 9:33</p>
 */
public class CommentVo {

    private Long id;
    /**
     * 用户昵称
     */
    private String nickName;

    /**
     * 用户头像
     */
    private String headImage;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论时间
     */
    private Date createTime;

    public String getNickName() {
        return nickName;
    }

    public CommentVo setNickName(String nickName) {
        this.nickName = nickName;
        return this;
    }

    public String getHeadImage() {
        return headImage;
    }

    public CommentVo setHeadImage(String headImage) {
        this.headImage = headImage;
        return this;
    }

    public String getContent() {
        return content;
    }

    public CommentVo setContent(String content) {
        this.content = content;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public CommentVo setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public Long getId() {
        return id;
    }

    public CommentVo setId(Long id) {
        this.id = id;
        return this;
    }

    @Override
    public String toString() {
        return "CommentVo{" +
                "id=" + id +
                ", nickName='" + nickName + '\'' +
                ", headImage='" + headImage + '\'' +
                ", content='" + content + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
